package com.hui.blog_server.controller;

import com.hui.blog_server.entity.ResponseResult;
import com.hui.blog_server.service.impl.CollectServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author 彩色的小灰
 */
@RestController
public class CollectController {

    @Autowired
    CollectServiceImpl collectService;

    @GetMapping("/collect")
    public ResponseResult<?> collect() {
        return ResponseResult.success(collectService.getAllCollect());
    }
}